import fetch from '@/utils/network/fetch'

const getDepartements = (objc) => {
    fetch('/api/organization', objc)
}

const addDepartement = (objc) => {
    fetch('/api/organization', objc)
}

const editDepartement = (objc) => {
    fetch(`/api/organization/${objc.data.id}`, objc)
}

const removeDepartement = (objc) => {
    fetch('/api/organization/deletion', objc)
}

export default {
    getDepartements,
    addDepartement,
    editDepartement,
    removeDepartement
}